package com.primestone.cim.dashboardforcim.domain;

// Generated Mar 18, 2013 9:12:05 PM by Hibernate Tools 4.0.0

import java.sql.Clob;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ResEndDeviceControls generated by hbm2java
 */
@Entity
@Table(name = "RES_END_DEVICE_CONTROLS", schema = "PUBLIC", catalog = "TMPTABLES")
@NamedQueries({
  @NamedQuery(name = "ResEndDeviceControls.findByTicket", 
		  	  query = "select o from ResEndDeviceControls o where o.ticket = :ResEndDeviceControls_ticket")
})
public class ResEndDeviceControls implements java.io.Serializable {

	private static final long serialVersionUID = 3326154163677773527L;
	
	private Long id;
	private String ticket;
	private String username;
	private String ip;
	private Date jsonResultDate;
	private Clob jsonResults;
	private String mrsOperation;

	public ResEndDeviceControls() {
	}

	public ResEndDeviceControls(String ticket, String username,
			Date jsonResultDate, String mrsOperation) {
		this.ticket = ticket;
		this.username = username;
		this.jsonResultDate = jsonResultDate;
		this.mrsOperation = mrsOperation;
	}

	public ResEndDeviceControls(String ticket, String username, String ip,
			Date jsonResultDate, Clob jsonResults, String mrsOperation) {
		this.ticket = ticket;
		this.username = username;
		this.ip = ip;
		this.jsonResultDate = jsonResultDate;
		this.jsonResults = jsonResults;
		this.mrsOperation = mrsOperation;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TICKET", nullable = false)
	public String getTicket() {
		return this.ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	@Column(name = "USERNAME", nullable = false, length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "IP", length = 100)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "JSON_RESULT_DATE", nullable = false, length = 23)
	public Date getJsonResultDate() {
		return this.jsonResultDate;
	}

	public void setJsonResultDate(Date jsonResultDate) {
		this.jsonResultDate = jsonResultDate;
	}

	@Column(name = "JSON_RESULTS")
	public Clob getJsonResults() {
		return this.jsonResults;
	}

	public void setJsonResults(Clob jsonResults) {
		this.jsonResults = jsonResults;
	}

	@Column(name = "MRS_OPERATION", nullable = false, length = 1)
	public String getMrsOperation() {
		return this.mrsOperation;
	}

	public void setMrsOperation(String mrsOperation) {
		this.mrsOperation = mrsOperation;
	}

}
